package com.yy.main.app.mapper;

import com.yy.pojo.base.TKeyword;
import com.yy.pojo.base.TKeywordExample;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 关键字表，用户发送消息的时候，区分关键字做相应操作 Mapper 接口
 * </p>
 *
 * @author 杨阳
 * @since 2017-09-20
 */
@Resource(name = "dataSource")
@Repository
public interface TKeywordMapper {
    long countByExample(TKeywordExample example);

    int deleteByExample(TKeywordExample example);

    int deleteByPrimaryKey(String id);

    int insert(TKeyword record);

    int insertSelective(TKeyword record);

    List<TKeyword> selectByExample(TKeywordExample example);

    TKeyword selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") TKeyword record, @Param("example") TKeywordExample example);

    int updateByExample(@Param("record") TKeyword record, @Param("example") TKeywordExample example);

    int updateByPrimaryKeySelective(TKeyword record);

    int updateByPrimaryKey(TKeyword record);
}